<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="<?php echo base_url($this->config->item('public')."assets/images/ico/favicon.ico");?>">

    <title>zopo</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo base_url($this->config->item('public')."assets/bootstrap/css/bootstrap.css");?>" rel="stylesheet">
	
	
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
	 <script src="<?php echo base_url($this->config->item('public')."assets/js/jquery-1.7.2.min.js");?>"></script>
	 <script>
		var site_url = "<?php echo site_url();?>";
	 </script>
	  <script src="<?php echo base_url($this->config->item('public')."assets/js/common.js");?>"></script>
  </head>

  <body>
  

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
         
        </div>
        <div class="navbar-collapse collapse">
		<ul class="nav navbar-nav">
            <li class="active"><a href="<?php echo site_url();?>">首页</a></li>
            <li><a href="#about">关于</a></li>
            <li><a href="#contact">联系</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">更多 <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
		  <?php
			
			if(!$this->user_model->islogin()):
		  ?>
          <form class="navbar-form navbar-right" method="POST" action="<?php echo site_url('account/loginaction');?>" role="form">
            <div class="form-group">
              <input type="email" name="email" placeholder="邮箱" class="form-control">
            </div>
            <div class="form-group">
              <input type="password" name="password" placeholder="密码" class="form-control">
            </div>
            <button type="submit" class="btn btn-success">登录</button>
			 <a class="btn btn-default"  href='<?php echo site_url("account/register");?>'>注册</a>
          </form>
		  
		  <?php 
		  else:
		 ?>
		 
		 	<ul class="nav navbar-nav navbar-right">
            <li><a href="<?php echo site_url("account");?>"><?php echo guser('username');?></a></li>
            <li><a href="<?php echo site_url("account");?>">个人中心</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">我的 <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo site_url("ecard/ecardList");?>">我的名片</a></li>
                <li><a href="<?php echo site_url('resources')?>">我的素材</a></li>
                <li class="divider"></li>
				
				<li><a href="#">私信</a></li>
                <li><a href="#">系统通知</a></li>
                <li class="divider"></li>
               
                <li><a href="#">修改资料</a></li>
                <li><a href="<?php echo site_url('account/logout')?>">退出登录</a></li>
              </ul>
            </li>
          </ul>
		 <?php
			
		  endif;
		  ?>
		 
        </div><!--/.navbar-collapse -->
      </div>
    </div>
